home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 61 72 | 6c 75 74 2e 75 74 65 78 |Path: ar|lut.utex|
|00000010| 61 73 2e 65 64 75 21 75 | 73 65 6e 65 74 0a 46 72 |as.edu!u|senet.Fr|
|00000020| 6f 6d 3a 20 4c 65 65 20 | 43 72 69 74 65 73 20 3c |om: Lee |Crites <|
|00000030| 63 72 69 74 65 73 3e 0a | 4e 65 77 73 67 72 6f 75 |crites>.|Newsgrou|
|00000040| 70 73 3a 20 63 6f 6d 70 | 2e 6c 61 6e 67 2e 63 2b |ps: comp|.lang.c+|
|00000050| 2b 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 6f |+.Subjec|t: Re: o|
|00000060| 76 65 72 6c 6f 61 64 69 | 6e 67 20 73 74 72 65 61 |verloadi|ng strea|
|00000070| 6d 20 6f 75 74 70 75 74 | 20 28 3c 3c 29 20 77 69 |m output| (<<) wi|
|00000080| 74 68 20 61 20 74 65 6d | 70 6c 61 74 65 2e 2e 2e |th a tem|plate...|
|00000090| 0a 44 61 74 65 3a 20 36 | 20 4a 61 6e 20 31 39 39 |.Date: 6| Jan 199|
|000000a0| 36 20 30 30 3a 31 30 3a | 34 38 20 47 4d 54 0a 4f |6 00:10:|48 GMT.O|
|000000b0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 41 70 70 |rganizat|ion: App|
|000000c0| 6c 69 65 64 20 52 65 73 | 65 61 72 63 68 20 4c 61 |lied Res|earch La|
|000000d0| 62 6f 72 61 74 6f 72 69 | 65 73 20 2d 20 54 68 65 |boratori|es - The|
|000000e0| 20 55 6e 69 76 65 72 73 | 69 74 79 20 6f 66 20 54 | Univers|ity of T|
|000000f0| 65 78 61 73 20 61 74 20 | 41 75 73 74 69 6e 0a 4d |exas at |Austin.M|
|00000100| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 34 63 6b 65 |essage-I|D: <4cke|
|00000110| 6d 38 24 35 65 61 40 6e | 73 31 2e 61 72 6c 75 74 |m8$5ea@n|s1.arlut|
|00000120| 2e 75 74 65 78 61 73 2e | 65 64 75 3e 0a 52 65 66 |.utexas.|edu>.Ref|
|00000130| 65 72 65 6e 63 65 73 3a | 20 3c 34 63 68 6b 63 64 |erences:| <4chkcd|
|00000140| 24 6e 38 71 40 6e 73 31 | 2e 61 72 6c 75 74 2e 75 |$n8q@ns1|.arlut.u|
|00000150| 74 65 78 61 73 2e 65 64 | 75 3e 20 3c 45 4e 4e 4f |texas.ed|u> <ENNO|
|00000160| 2e 39 36 4a 61 6e 35 32 | 31 31 35 33 33 40 6b 69 |.96Jan52|11533@ki|
|00000170| 74 7a 2e 69 6e 66 65 72 | 65 6e 7a 73 79 73 74 65 |tz.infer|enzsyste|
|00000180| 6d 65 2e 69 6e 66 6f 72 | 6d 61 74 69 6b 2e 74 68 |me.infor|matik.th|
|00000190| 2d 64 61 72 6d 73 74 61 | 64 74 2e 64 65 3e 0a 4e |-darmsta|dt.de>.N|
|000001a0| 4e 54 50 2d 50 6f 73 74 | 69 6e 67 2d 48 6f 73 74 |NTP-Post|ing-Host|
|000001b0| 3a 20 73 71 75 69 64 2e | 61 72 6c 75 74 2e 75 74 |: squid.|arlut.ut|
|000001c0| 65 78 61 73 2e 65 64 75 | 0a 4d 69 6d 65 2d 56 65 |exas.edu|.Mime-Ve|
|000001d0| 72 73 69 6f 6e 3a 20 31 | 2e 30 0a 43 6f 6e 74 65 |rsion: 1|.0.Conte|
|000001e0| 6e 74 2d 54 79 70 65 3a | 20 74 65 78 74 2f 70 6c |nt-Type:| text/pl|
|000001f0| 61 69 6e 3b 20 63 68 61 | 72 73 65 74 3d 75 73 2d |ain; cha|rset=us-|
|00000200| 61 73 63 69 69 0a 43 6f | 6e 74 65 6e 74 2d 54 72 |ascii.Co|ntent-Tr|
|00000210| 61 6e 73 66 65 72 2d 45 | 6e 63 6f 64 69 6e 67 3a |ansfer-E|ncoding:|
|00000220| 20 37 62 69 74 0a 58 2d | 4d 61 69 6c 65 72 3a 20 | 7bit.X-|Mailer: |
|00000230| 4d 6f 7a 69 6c 6c 61 20 | 31 2e 31 4e 20 28 58 31 |Mozilla |1.1N (X1|
|00000240| 31 3b 20 49 3b 20 48 50 | 2d 55 58 20 41 2e 30 39 |1; I; HP|-UX A.09|
|00000250| 2e 30 31 20 39 30 30 30 | 2f 37 33 30 29 0a 54 6f |.01 9000|/730).To|
|00000260| 3a 20 65 6e 6e 6f 40 69 | 6e 66 65 72 65 6e 7a 73 |: enno@i|nferenzs|
|00000270| 79 73 74 65 6d 65 2e 69 | 6e 66 6f 72 6d 61 74 69 |ysteme.i|nformati|
|00000280| 6b 2e 74 68 2d 64 61 72 | 6d 73 74 61 64 74 2e 64 |k.th-dar|mstadt.d|
|00000290| 65 0a 58 2d 55 52 4c 3a | 20 6e 65 77 73 3a 45 4e |e.X-URL:| news:EN|
|000002a0| 4e 4f 2e 39 36 4a 61 6e | 35 32 31 31 35 33 33 40 |NO.96Jan|5211533@|
|000002b0| 6b 69 74 7a 2e 69 6e 66 | 65 72 65 6e 7a 73 79 73 |kitz.inf|erenzsys|
|000002c0| 74 65 6d 65 2e 69 6e 66 | 6f 72 6d 61 74 69 6b 2e |teme.inf|ormatik.|
|000002d0| 74 68 2d 64 61 72 6d 73 | 74 61 64 74 2e 64 65 0a |th-darms|tadt.de.|
|000002e0| 0a 65 6e 6e 6f 40 69 6e | 66 65 72 65 6e 7a 73 79 |.enno@in|ferenzsy|
|000002f0| 73 74 65 6d 65 2e 69 6e | 66 6f 72 6d 61 74 69 6b |steme.in|formatik|
|00000300| 2e 74 68 2d 64 61 72 6d | 73 74 61 64 74 2e 64 65 |.th-darm|stadt.de|
|00000310| 20 28 45 6e 6e 6f 20 53 | 61 6e 64 6e 65 72 29 20 | (Enno S|andner) |
|00000320| 77 72 6f 74 65 3a 0a 5b | 6d 79 20 6f 72 69 67 69 |wrote:.[|my origi|
|00000330| 6e 61 6c 20 71 75 65 73 | 74 69 6f 6e 20 73 6e 69 |nal ques|tion sni|
|00000340| 70 70 65 64 5d 0a 0a 3e | 54 68 65 20 66 6f 6c 6c |pped]..>|The foll|
|00000350| 6f 77 69 6e 67 20 63 6f | 64 65 20 69 73 20 61 6e |owing co|de is an|
|00000360| 20 65 78 61 6d 70 6c 65 | 20 66 6f 72 20 61 20 67 | example| for a g|
|00000370| 65 6e 65 72 69 63 2d 66 | 72 69 65 6e 64 20 66 75 |eneric-f|riend fu|
|00000380| 6e 63 74 69 6f 6e 3a 0a | 3e 0a 3e 23 69 6e 63 6c |nction:.|>.>#incl|
|00000390| 75 64 65 20 3c 69 6f 73 | 74 72 65 61 6d 2e 68 3e |ude <ios|tream.h>|
|000003a0| 0a 3e 0a 3e 74 65 6d 70 | 6c 61 74 65 20 3c 69 6e |.>.>temp|late <in|
|000003b0| 74 20 74 68 65 54 79 70 | 65 2c 20 69 6e 74 20 74 |t theTyp|e, int t|
|000003c0| 68 65 4c 65 6e 67 74 68 | 2c 20 63 6c 61 73 73 20 |heLength|, class |
|000003d0| 54 3e 20 73 74 72 75 63 | 74 20 53 74 75 66 66 20 |T> struc|t Stuff |
|000003e0| 7b 0a 3e 20 20 66 72 69 | 65 6e 64 20 6f 73 74 72 |{.> fri|end ostr|
|000003f0| 65 61 6d 26 20 6f 70 65 | 72 61 74 6f 72 20 3c 3c |eam& ope|rator <<|
|00000400| 20 28 6f 73 74 72 65 61 | 6d 26 2c 63 6f 6e 73 74 | (ostrea|m&,const|
|00000410| 20 53 74 75 66 66 26 29 | 3b 0a 3e 7d 3b 0a 3e 0a | Stuff&)|;.>};.>.|
|00000420| 3e 74 65 6d 70 6c 61 74 | 65 3c 69 6e 74 20 74 68 |>templat|e<int th|
|00000430| 65 54 79 70 65 2c 20 69 | 6e 74 20 74 68 65 4c 65 |eType, i|nt theLe|
|00000440| 6e 67 74 68 2c 20 63 6c | 61 73 73 20 54 3e 20 0a |ngth, cl|ass T> .|
|00000450| 3e 69 6e 6c 69 6e 65 20 | 6f 73 74 72 65 61 6d 26 |>inline |ostream&|
|00000460| 20 6f 70 65 72 61 74 6f | 72 20 3c 3c 20 28 6f 73 | operato|r << (os|
|00000470| 74 72 65 61 6d 26 20 6f | 2c 63 6f 6e 73 74 20 53 |tream& o|,const S|
|00000480| 74 75 66 66 3c 74 68 65 | 54 79 70 65 2c 74 68 65 |tuff<the|Type,the|
|00000490| 4c 65 6e 67 74 68 2c 54 | 3e 26 29 20 7b 0a 3e 20 |Length,T|>&) {.> |
|000004a0| 20 72 65 74 75 72 6e 20 | 6f 20 3c 3c 20 22 53 54 | return |o << "ST|
|000004b0| 55 46 46 22 3b 0a 3e 7d | 0a 0a 54 68 61 6e 6b 73 |UFF";.>}|..Thanks|
|000004c0| 20 66 6f 72 20 74 68 65 | 20 73 75 67 67 65 73 74 | for the| suggest|
|000004d0| 69 6f 6e 2e 20 20 49 20 | 74 72 69 65 64 20 74 68 |ion. I |tried th|
|000004e0| 69 73 2c 20 61 6e 64 20 | 6d 61 6e 79 20 6f 74 68 |is, and |many oth|
|000004f0| 65 72 20 73 69 6d 69 6c | 61 72 20 6f 70 74 69 6f |er simil|ar optio|
|00000500| 6e 73 2c 0a 61 6c 72 65 | 61 64 79 2c 20 61 6e 64 |ns,.alre|ady, and|
|00000510| 20 69 74 20 64 69 64 6e | 27 74 20 77 6f 72 6b 2e | it didn|'t work.|
|00000520| 20 20 49 20 61 73 73 75 | 6d 65 20 74 68 61 74 20 | I assu|me that |
|00000530| 79 6f 75 20 6a 75 73 74 | 20 74 79 70 65 64 20 74 |you just| typed t|
|00000540| 68 69 73 20 69 6e 20 66 | 72 6f 6d 20 6f 66 66 20 |his in f|rom off |
|00000550| 74 68 65 0a 63 75 66 66 | 20 28 61 73 20 6f 70 70 |the.cuff| (as opp|
|00000560| 6f 73 65 64 20 74 6f 20 | 74 61 6b 69 6e 67 20 61 |osed to |taking a|
|00000570| 20 63 6c 69 70 20 66 72 | 6f 6d 20 6f 6e 65 20 6f | clip fr|om one o|
|00000580| 66 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 73 29 |f your p|rograms)|
|00000590| 2e 0a 0a 49 20 61 6d 20 | 75 73 69 6e 67 20 61 20 |...I am |using a |
|000005a0| 63 6c 61 73 73 2c 20 61 | 6e 64 20 79 6f 75 20 64 |class, a|nd you d|
|000005b0| 65 66 69 6e 65 64 20 61 | 20 73 74 72 75 63 74 2e |efined a| struct.|
|000005c0| 20 20 49 73 20 74 68 69 | 73 20 70 61 72 74 20 6f | Is thi|s part o|
|000005d0| 66 20 74 68 65 20 70 72 | 6f 62 6c 65 6d 3f 0a 0a |f the pr|oblem?..|
|000005e0| 49 20 61 6d 20 77 6f 72 | 6b 69 6e 67 20 6f 6e 20 |I am wor|king on |
|000005f0| 61 20 73 75 6e 20 77 69 | 74 68 20 69 74 27 73 20 |a sun wi|th it's |
|00000600| 67 65 6e 65 72 69 63 20 | 43 43 20 63 6f 6d 70 69 |generic |CC compi|
|00000610| 6c 65 72 2e 20 20 54 68 | 65 72 65 20 63 6f 6d 65 |ler. Th|ere come|
|00000620| 73 20 61 20 70 6f 69 6e | 74 20 69 6e 0a 73 6f 6d |s a poin|t in.som|
|00000630| 65 20 6f 66 20 6d 79 20 | 74 65 73 74 69 6e 67 20 |e of my |testing |
|00000640| 6f 66 20 64 69 66 66 65 | 72 65 6e 74 20 6f 70 74 |of diffe|rent opt|
|00000650| 69 6f 6e 73 20 61 6e 64 | 20 66 6f 72 6d 61 74 73 |ions and| formats|
|00000660| 20 74 68 61 74 20 49 20 | 73 74 61 72 74 20 67 65 | that I |start ge|
|00000670| 74 74 69 6e 67 20 72 65 | 61 6c 6c 79 0a 73 63 72 |tting re|ally.scr|
|00000680| 65 77 62 61 6c 6c 20 65 | 72 72 6f 72 73 20 66 72 |ewball e|rrors fr|
|00000690| 6f 6d 20 74 68 65 20 63 | 6f 6d 70 69 6c 65 72 20 |om the c|ompiler |
|000006a0| 61 6e 64 2f 6f 72 20 6c | 69 6e 6b 65 72 2e 0a 0a |and/or l|inker...|
|000006b0| 4f 6e 65 20 6f 66 20 74 | 68 65 20 72 65 61 6c 6c |One of t|he reall|
|000006c0| 79 20 77 69 65 72 64 20 | 65 72 72 6f 72 73 20 74 |y wierd |errors t|
|000006d0| 68 61 74 20 49 20 67 6f | 74 20 74 61 6c 6b 65 64 |hat I go|t talked|
|000006e0| 20 61 62 6f 75 74 20 61 | 20 66 61 74 61 6c 20 65 | about a| fatal e|
|000006f0| 72 72 6f 72 20 6f 6e 20 | 61 20 6c 69 6e 65 0a 74 |rror on |a line.t|
|00000700| 68 61 74 20 69 73 20 69 | 6e 20 74 68 65 20 6d 69 |hat is i|n the mi|
|00000710| 64 64 6c 65 20 6f 66 20 | 61 20 63 6f 6d 6d 65 6e |ddle of |a commen|
|00000720| 74 2e 20 20 52 65 61 6c | 6c 79 20 73 74 72 61 6e |t. Real|ly stran|
|00000730| 67 65 2e 20 20 49 6e 20 | 66 61 63 74 2c 20 74 68 |ge. In |fact, th|
|00000740| 65 20 6c 69 6e 65 20 6e | 75 6d 62 65 72 0a 72 65 |e line n|umber.re|
|00000750| 6d 61 69 6e 65 64 20 63 | 6f 6e 73 74 61 6e 74 20 |mained c|onstant |
|00000760| 65 76 65 6e 20 77 68 65 | 6e 20 49 20 72 65 6d 6f |even whe|n I remo|
|00000770| 76 65 64 20 73 65 76 65 | 72 61 6c 20 64 6f 7a 65 |ved seve|ral doze|
|00000780| 6e 20 6c 69 6e 65 73 20 | 6f 66 20 63 6f 6d 6d 65 |n lines |of comme|
|00000790| 6e 74 73 2e 20 20 49 27 | 64 20 62 65 74 0a 74 68 |nts. I'|d bet.th|
|000007a0| 61 74 20 74 68 65 20 63 | 6f 6d 70 69 6c 65 72 20 |at the c|ompiler |
|000007b0| 67 6f 74 20 73 6f 20 62 | 6f 6d 62 65 64 20 74 68 |got so b|ombed th|
|000007c0| 61 74 20 69 74 20 63 6f | 75 6c 64 6e 27 74 20 65 |at it co|uldn't e|
|000007d0| 76 65 6e 20 74 65 6c 6c | 20 6d 65 20 77 68 61 74 |ven tell| me what|
|000007e0| 20 74 68 65 20 70 72 6f | 62 6c 65 6d 0a 72 65 61 | the pro|blem.rea|
|000007f0| 6c 6c 79 20 77 61 73 2e | 0a 0a 49 20 77 65 6e 74 |lly was.|..I went|
|00000800| 20 62 61 63 6b 20 61 6e | 64 20 74 65 73 74 65 64 | back an|d tested|
|00000810| 20 74 68 65 20 6e 6f 6e | 2d 74 65 6d 70 6c 61 74 | the non|-templat|
|00000820| 65 20 76 65 72 73 69 6f | 6e 20 6f 66 20 74 68 69 |e versio|n of thi|
|00000830| 73 2c 20 61 6e 64 20 74 | 68 65 20 3c 3c 20 6f 76 |s, and t|he << ov|
|00000840| 65 72 72 69 64 65 0a 77 | 6f 72 6b 73 2e 20 20 4d |erride.w|orks. M|
|00000850| 79 20 70 72 6f 62 6c 65 | 6d 20 69 73 20 67 65 74 |y proble|m is get|
|00000860| 74 69 6e 67 20 61 6c 6c | 20 6f 66 20 74 68 65 20 |ting all| of the |
|00000870| 3c 2e 2e 2e 3e 20 73 74 | 75 66 66 20 69 6e 20 74 |<...> st|uff in t|
|00000880| 68 65 20 72 69 67 68 74 | 20 70 6c 61 63 65 2c 20 |he right| place, |
|00000890| 49 0a 67 75 65 73 73 2e | 20 20 4f 66 20 63 6f 75 |I.guess.| Of cou|
|000008a0| 72 73 65 2c 20 61 73 20 | 6e 65 77 20 61 73 20 61 |rse, as |new as a|
|000008b0| 6c 6c 20 6f 66 20 74 68 | 69 73 20 69 73 2c 20 69 |ll of th|is is, i|
|000008c0| 74 20 6a 75 73 74 20 6d | 69 67 68 74 20 6e 6f 74 |t just m|ight not|
|000008d0| 20 62 65 20 70 6f 73 73 | 69 62 6c 65 20 79 65 74 | be poss|ible yet|
|000008e0| 2e 0a 0a 4c 65 65 0a 0a | |...Lee..| |
+--------+-------------------------+-------------------------+--------+--------+